package jjn.round2;

/**
 * @author Jiang Jining
 * @since 2023-05-03 0:06
 */
public class Offer58_ReverseLeftWords {
    public String reverseLeftWords(String s, int n) {
        int length = s.length();
        int move = n % length;
        if (move == 0) return s;
        return s.substring(move) + s.substring(0, move);
    }
}
